@import 'variables.scss';

/******************************
PRODUCT PAGE
*******************************/

#product-gallery{
  .owl-wrapper-outer{
    margin-bottom: 0;
  }
  .side-buttons div{
    margin-top: -12px;
  }
  .owl-pagination{
    display: none;
  }
}

.product-info {
  overflow: auto;
  margin-bottom: 20px;
  position: relative;
  width: 100%;

  > div{
    width: 50%;
    float: left;
  }

  //LEFT SIDE
  .left{
    .image {
      padding: 0;
      text-align: left;
      position: relative;
      overflow: hidden;
      a img{
        width: 100%;
        height: auto;
        float: left;
      }
    }

    .image-additional {
      clear: both;
      overflow: hidden;
      position: relative;
      text-align: center;
      margin-bottom: 15px;
      a {
        position: relative;
        display: inline-block;
        float: left;
        img {
          width: 100%;
          float: left;
        }
      }
      &.image-addtional-grid{
        a{
          width: 20%;
        }
      }
    }
  }

  .gallery-text{
    text-align: center;
    padding: 10px 0 0 0;
    color: $gray;
    span{
      display: inline-block;
      position: relative;
    }
  }
  .gallery-text:before{
    margin-right: 5px;
  }

  //RIGHT SIDE
  .right{
      padding-left: 20px;
    .product-options{
      background-color: transparent;
      overflow: hidden;
    }
      > div > div{
        padding: 10px;
        position: relative;
        overflow: hidden;
      }

      a{
        color: $blue;
      }
      .description {
        line-height: 17px;
        .product-views-count{
          float: right;
        }
        span {
          padding-right: 3px;
        }
      }
      .price {
        span{
          position: relative;
        }
      }
      .price-old {
        font-size: 18px;
        text-decoration: line-through;
        background: $red;
        color: white;
        padding: 3px 6px;
        top: -3px;
      }
      .price-tax {
        font-size: 13px;
        font-weight: normal;
        padding: 4px 0 4px 0;
        display: block;
      }
      .price .reward {
        display: block;
        font-size: 12px;
        margin-top:7px;
        font-weight: normal;
        small{
          font-size:inherit;
        }
      }
      .price .discount {
        font-weight: normal;
        font-size: 11px;
        line-height: 1.4;
        margin-top: 7px;
      }
      .options {
        h3{
          margin: -10px;
          margin-bottom: -7px !important;
          height: 40px;
          line-height: 40px;
          background-color: $e4;
          padding-left: 15px;
        }

        &.push-1{
          .option b + br{
            display: none;
          }
        }

        .option {
          position: relative;
          display: inline-block;
          padding-bottom: 10px;
          width: 100%;
          margin-bottom: 10px;
          border-bottom: 1px solid $e4;
          .required{
            font-size: 18px;
          }
          b {
            font-size: 12px;
            display: inline-block;
            position: absolute;
          }


          span {
            padding: 5px 3px 3px 0;
          }
          input[type='text'],textarea {
            min-width: 100%;
          }
        }
        .option:last-of-type{
          border-bottom: none;
          padding-bottom: 0;
          margin-bottom: 0;
        }
        span.error {
          position: absolute;
          right: 5px;
          padding: 3px 4px 2px 4px;
        }
      }

      .option-image {
        margin-top: 3px;
        margin-bottom: 10px;
        tbody tr td:first-of-type + td{
          width: 50px;
        }
        label {
          display: block;
          width: 100%;
          height: 100%;
          padding-right: 0;
        }
        img {
          margin-right: 5px;
          cursor: pointer;
          max-width: 50px;
        }
      }
      .cart {
        div {
          .qty{
            width: 34%;
            display: block;
            float: left;
            height: 40px;
            margin-right: 8px;
            overflow: hidden;
          }
          .text-qty{
            width: 50%;
            font-weight: bold;
            display: none;
            height: 100%;
            line-height: 40px;
            text-align: center;
            float: left;
          }
          .journal-stepper{
            width: 30%;
            color: white;
            background-color: $light;
            display: inline-block;
            text-align: center;
            height: 100%;
            float: left;
            line-height: 38px;
            font-size: 20px;
            font-weight: bold;
            transition: all 0.2s;
          }
          input[name=quantity] {
            float: left;
            width: 40%;
            line-height: 38px;
            height: 100%;
            text-align: center;
            margin: 0;
            border: 0;
          }
          .button{
            position: relative;
            line-height: 40px;
            font-size: 15px;
            display: inline-block;
            width: 63%;
            float: right;
            .button-cart-text:before{
              margin-right: 8px;
              line-height: 100%;
            }
            .button-cart-text:after{
              line-height: 100%;
              margin-left: 8px;
            }
          }

        }
        .minimum {
          padding-top: 10px;
          font-size: 12px;
          clear: both;
        }
      }

      .wishlist-compare{
        padding: 0;
        border-bottom: none;
        .links{
          width: 100%;
          clear: both;
          display: block;
          text-align: center;
          padding: 2px 0 4px 0;
          a{
            padding: 0 20px;
            border: none;
            color: $blue;
            font-size: 12px;
            display: inline-block;
            text-align: center;
            line-height: 30px;
            transition: all 0.2s;
          }
          a:before{
            position: relative;
            right: 5px;
            font-size: 15px;
            float: left;
          }

          span{
            line-height: 24px;
            display: none;
          }
        }
      }

      .review {
        img {
          top: 2px;
          position: relative;
          margin-right: 7px;
        }

        .share {
          display: none;
          overflow: auto;
          line-height: normal;
          a {
            text-decoration: none;
          }
        }
      }
    }

    //Push Select
    .option{
      ul{
        list-style: none;
        padding: 0;
        margin: 0;
        li{
          background-color: white;
          color: $dark;
          font-weight: bold;
          font-size: 13px;
          display: inline-block;
          padding: 0 7px;
          margin: 0 7px 0 0;
          line-height: 23px;
          cursor: pointer;
          transition:all .2s;
        }
      }
    }
  .tab-content{
    border-radius: 0;
  }

  &.split-70-30{
    .left{
      width: 70%;
    }
    .right{
      width: 30%;
      .cart div .qty{
        width: 100%;
        margin-bottom: 10px;
      }
      .cart div .button{
        width: 100%;
      }
    }
  }
  &.split-60-40{
    .left{
      width: 60%;
    }
    .right{
      width: 40%;
    }
  }
  &.split-40-60{
    .left{
      width: 40%;
    }
    .right{
      width: 60%;
    }
  }
  &.split-30-70{
    .left{
      width: 30%;
    }
    .right{
      width: 70%;
    }
  }
}

.product-info.lt620{
  .right {
    .price-tax {
      padding: 4px 0 4px 0;
      margin-left: 0;
      margin-top: 5px;
      border-left: none;
      top: 0;
      display: block;
    }
  }
}

.social {
  margin-bottom: 20px;
  background-color: $f4;
  padding: 7px 8px 10px 8px;
  min-height: 40px;
  background-position: 10px center;
  background-repeat: no-repeat;
  span  {
    min-height: 22px !important;
  }
}

.social-loaded{
  background-color: inherit;
}

.attribute {
  border-collapse: collapse;
  width: 100%;
  border-top: 1px solid $e4;
  border-left: 1px solid $e4;
  margin-bottom: 20px;
  thead td, thead tr td:first-child {
    color: #333745;
    font-size: 14px;
    font-weight: bold;
    background: #f4f4f4;
    text-align: left;
  }
  tr td:first-child {
    font-weight: bold;
    text-align: center;
    width: 20%;
  }
  td {
    padding: 7px;
    color: $dark;
    text-align: center;
    vertical-align: top;
    border-right: 1px solid $e4;
    border-bottom: 1px solid $e4;
  }
}

ul.product-option {
  padding: 0;
}

/******************************
PRODUCT TABS
*******************************/

input[name='captcha'] {
  width: 150px;
  margin: 10px 0;
}

#tab-description div,
#tab-description p {
  line-height: 1.3;
  margin-bottom: 10px;
}

#tab-description h3 {
  padding-left: 0;
  margin-bottom: 3px;
}

#tab-description ul li {
  margin-bottom: 5px;
}

#tabs{
  display: inline-block;
  overflow: hidden;
  a{
    line-height: 37px;
  }
}

#tabs a {
  background-color: $red;
  float: left;
  padding: 0 15px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: white;
  display: none;
  transition:all .2s;
  box-shadow: inset 0 -3px 6px -2px rgba(0,0,0,.5);
}

#tabs a.selected {
  background-color: $f4;
  box-shadow: none;
  color: $dark;
}

.tab-content {
  margin-top: -3px;
  //clear: both;
  padding: 15px;
  background-color: $f4;
  margin-bottom: 20px;
  z-index: 2;
  overflow: auto;
  p {
    font-size: 13px;
    margin-bottom: 0;
  }
}

.journal-custom-tab, .tab-content{
  h3{
    padding-bottom: 7px;
  }
  p a{
    color: $blue;
  }
}

.product-info .left .journal-custom-tab{
   margin-top: 15px;
}

.tab-related, #tab-related{
  display: none !important;
}

.related-products{
  .owl-carousel .owl-buttons div{
    top: -38px;
  }
}

/******************************
 REVIEW
*******************************/

.review-list {
  background-color: transparent;
  padding: 10px;
  overflow: auto;
  margin-bottom: 20px;
  border: 1px solid $e4;
  .text {
    padding: 10px;
    padding-top: 0;
    line-height: 1.3;
    clear: both;
  }
  .author {
    padding: 5px;
    font-weight: bold;
    border-bottom: 1px solid $e4;
    display: inline-block;
    color: #333;
  }
  .author b {
    font-size: 15px;
    font-weight: bold;
    color: #5C8BA6;
  }
  .rating {
    float: right;
    margin-bottom: 20px;
  }
}

#content #review-title{
  border-bottom: none;
  background-color: $gray;
  color: white;
  padding: 5px 0 5px 10px;
  margin-bottom: 15px;
  line-height: 25px;
  height: auto;
}

#tab-review {
  position: relative;
  padding: 20px;
  padding-bottom: 0;
}


/******************************
 TAGS
*******************************/

.tags {
  margin-left: 0;
  color: transparent;
  margin-bottom: 15px;
}

.tags b {
  padding: 2px 6px 3px 6px;
  background-color: $gray;
  color: white;
  margin-right: 5px;
  font-weight: normal;
}

.tags a {
  margin-left: 0;
  padding: 2px 6px 3px 6px;
  background-color: $f4;
  color: $dark;
  display: inline-block;
  margin-bottom: 5px;
  transition: all 0.2s;
}


/******************************
PRODUCT LABELS
*******************************/

.product-grid-item, .product-list-item, .product-info{
  .image{
    > span{
      position: absolute;
      z-index: 99;
      text-align: center;
      display: block;
      transition:opacity .2s;
    }
  }
}

.label-latest{
  color: white;
  background: $blue;
  top: 5px;
  right: 5px;
  padding: 5px 6px;
}

.label-sale{
  top: 5px;
  right: 5px;
  background: $red;
  color: white;
  font-weight: bold;
  padding: 5px 5px 6px 5px;
}

.label-latest + .label-sale{
  top: 26px;
  margin-top: 9px;
}

img.outofstock{
  transition:opacity .2s;
  pointer-events:none;
}


/******************************
 QUICKVIEW
*******************************/
.noscroll{
  margin: 0 !important;
  overflow-y: scroll !important;
  position: fixed;
  width: 100%;
}

.quickview-button{
  position: absolute;
  z-index: 99;
  left: 50%;
  margin-left: -45px;
  top: 50%;
  margin-top: -20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
  .quickview-button{
    -webkit-backface-visibility: hidden;
  }

.product-wrapper, .product-list-item{
  &:hover{
    .quickview-button{
      opacity: 1;
      visibility: visible;
    }
  }
}

.quickview {
  body{
    background-color: transparent;
    background-image: none;
  }

  .mfp-iframe{
    background-color: white;
  }

  #container{
    min-height: 100%;
    background-color:white;
  }
  #content{
    padding: 15px 15px 5px 15px;
    &:after{
      content: "";
      display: none;
    }
  }

  .heading-title{
    margin-bottom: 15px;
  }
  .mfp-iframe-holder .mfp-content {
    max-width: 800px;
    height: 530px;
  }

  .product-info {
    margin-bottom: 15px;
    .right{
      padding-left: 15px;
      .cart{
        display: table;
        overflow: visible;
        width: 100%;
      }
    }
    .left {
      .image-additional{
        margin-bottom: 5px;
      }
      .tab-content{
        margin-top: 15px;
        margin-bottom: 0;
      }
    }
  }

  #button-cart{
    width: 50%;
    float: left;
  }
  #more-details{
    width: 40px;
    height: 40px;
    float: right;
  }

  [data-hint]:before{
    display: block;
    margin-left: -6px;
  }
  [data-hint]:after{
    display: block;
    left: auto;
    right: 0;
    text-shadow: none;
    box-shadow:none;
    line-height: 100%;
  }

  //open/close animation
  .mfp-iframe {
    opacity: 0;
    transition: all 0.2s ease-in-out;
    -webkit-transform: scale(.7);
    -moz-transform: scale(.7);
    -ms-transform: scale(.7);
    transform: scale(.7);
  }

  &.mfp-bg {
    opacity: 0;
    transition: all 0.2s ease-out;
  }

  /* animate in */
  &.mfp-ready {
    .mfp-iframe {
      opacity: 1;
      -webkit-transform: scale(1);
      -moz-transform: scale(1);
      -ms-transform: scale(1);
      transform: scale(1);
    }
    &.mfp-bg {
      opacity: 0.75;
    }
  }

  /* animate out */
  &.mfp-removing {
    .mfp-iframe {
      -webkit-transform: scale(.7);
      -moz-transform: scale(.7);
      -ms-transform: scale(.7);
      transform: scale(.7);
      opacity: 0;
    }
    &.mfp-bg {
      opacity: 0;
    }
  }
  .zoomContainer{
    position: fixed !important;
  }
}

/******************************
 CLOUD ZOOM
*******************************/

.quickview .zoomWindowContainer > div{
  cursor: crosshair !important;
}

.zoomContainer{
  z-index: 98;
}
